<?php
	//error_reporting(E_ALL);//错误报告级别
	error_reporting(E_ERROR | E_PARSE);//错误报告级别
	define('__PUBLIC__', ROOT_PATH."/Public");
	
	//定义文件上传路径
	define('UPLOAD', __PUBLIC__."/accessory");  //附件存放路径
	define('UPLOADIMG', UPLOAD."/img/");   //商品新闻多图片上传路径
	
	define('HOST','http://'.$_SERVER['HTTP_HOST']);
	define('QQWRY',__PUBLIC__."/other/qqwry.dat");
	
	
	
	define('UPLOADIMGEEXTEND', UPLOAD."/upload/");  //其他单图片上传路径
	
	
	
	
	require_cache(ROOT_PATH."/Common/extend.php");
	require(ROOT_PATH."/Common/common_cache.php");
	C('SYSCONFIG',$sysconfig);
	require_cache(ROOT_PATH."/Common/common_function.php");
	//处理REQUEST_URI
	if(!isset($_SERVER['REQUEST_URI'])) {
		$_SERVER['REQUEST_URI'] = $_SERVER['PHP_SELF'];
		if(isset($_SERVER['QUERY_STRING'])) $_SERVER['REQUEST_URI'] .= '?'.$_SERVER['QUERY_STRING'];
	}
	
	//fun_url_ck();//防止盗链
?>